const mongoose = require('mongoose')
const studentschema = new mongoose.Schema({
    userid: {
        type: String,
        required: true,
        unique: true
    },
    userhead: {
        type: String,
    },
    name: {
        type: String,
        required: true,
    },
    phone: {
        type: String,
        required: true,
    },
    password: {
        type: String,
        required: true,
    },
    email: {
        type: String,
        required: true,
    },
    sex: {
        type: String,
        required: true,
    },
    bankcard: {
        type: String,
        required: true,
    },
    className: {
        type: String,
        required: true,
    },
})
module.exports = mongoose.model('student',studentschema)